package com.cs.contract.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;


/**
 * @Author：zrx
 * @Package：com.cs.cscontract.domain
 * @Project：Ruoyi
 * @name：CsEmployee
 * @Date：2024/11/19 11:59
 * @Filename：CsEmployee
 */
public class CsEmployee extends BaseEntity {
    private static final long serialVersionUID = -8113832380055412712L;
    @Excel(name = "员工ID")
    private Integer pid;
    @Excel(name = "用户名")
    private String pName;
    @Excel(name = "密码")
    private String pPassword;
    @Excel(name = "员工性别")
    private Integer pSex;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "员工出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date pBorn;
    @Excel(name = "员工昵称")
    private String pNick;

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }

    public String getpPassword() {
        return pPassword;
    }

    public void setpPassword(String pPassword) {
        this.pPassword = pPassword;
    }

    public Integer getpSex() {
        return pSex;
    }

    public void setpSex(Integer pSex) {
        this.pSex = pSex;
    }

    public Date getpBorn() {
        return pBorn;
    }

    public void setpBorn(Date pBorn) {
        this.pBorn = pBorn;
    }

    public String getpNick() {
        return pNick;
    }

    public void setpNick(String pNick) {
        this.pNick = pNick;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("pid", pid)
                .append("pName", pName)
                .append("pPassword", pPassword)
                .append("pSex", pSex)
                .append("pBorn", pBorn)
                .append("pNick", pNick)
                .toString();
    }
}
